﻿using Peter.Common.Dialog;

namespace Peter.Sdw.Logic.Dialogs
{
   /// <summary>
   /// Dialog for adding terms.
   /// </summary>
   public class TermAddModel : DialogBase
   {
      private string m_TermName;
      /// <summary>
      /// Initializes a new add book view model.
      /// </summary>
      public TermAddModel ()
      {
         this.Width = 400;
         this.Height = 200;
         this.Title = "Add a New Term";
         this.OkButtonText = "Create";
      }

      /// <summary>
      /// Gets or Sets the term name.
      /// </summary>
      public string TermName
      {
         get { return this.m_TermName; }
         set
         {
            this.m_TermName = value;
            this.RaisePropertyChanged ("TermName");
         }
      }
   }
}
